<!DOCTYPE html>

<html lang="en" xmlns:th="http://www.thymeleaf.org">
<!--css资源片段引用-->
    <head th:fragment="head(title)">
        <meta charset="UTF-8">
        <meta name="viewport" content="width=device-width,initial-scale=1.0">
        <title th:replace="${title}">博文详情</title>
        <link rel="shortcut icon" th:href="@{/favicon.ico}" type="image/x-icon">
        <link rel="stylesheet" href="../static/css/semantic.min.css" th:href="@{/css/semantic.min.css}">
        <link rel="stylesheet" href="../../static/lib/editormd/css/editormd.min.css" th:href="@{/lib/editormd/css/editormd.min.css}">
        <link rel="stylesheet" href="../static/css/me.css" th:href="@{/css/me.css}">
    </head>
<body>

<!--后台导航引用片段-->
<nav th:fragment="menu(n)" class="ui  inverted attached segment m-padded-tb-mini m-shadow-small">
    <div style="float: left;padding-top: 5px"><img th:src="@{/images/logo.jpg}" style="width: 100px;height: 45px"></div>
    <div class="ui container">
        <div class="ui inverted secondary stackable menu">
            <h2 class="ui blue header item">亦航博客管理后台</h2>
            <a th:href="@{/admin/index}" class="m-item item m-mobile-hide" th:classappend="${n==1} ? 'active'"><i class="ui red  home icon"></i>后台首页</a>
            <a th:href="@{/admin/blogs}" class="m-item item m-mobile-hide" th:classappend="${n==2} ? 'active'"><i class="ui pink  book icon"></i>博客管理</a>
            <a th:href="@{/admin/types}" class="m-item item m-mobile-hide" th:classappend="${n==3} ? 'active'"><i class="green sitemap icon"></i>分类管理</a>
            <a th:href="@{/admin/tags}" class="m-item item m-mobile-hide" th:classappend="${n==4} ? 'active'"><i class="purple tags icon"></i>标签管理</a>
            <div class="right menu m-item m-mobile-hide">
                <div class="ui dropdown item">
                    <div class="text">
                        <img th:src="${session.user.avatar}" src="https://picsum.photos/id/237/100/100" alt="" class="ui avatar image">
                        [[${session.user.nickname}]]
                    </div>
                    <i class="dropdown icon"></i>
                    <div class="menu">
                        <a href="javascript:void(0);" class="item"><i class="user purple icon"></i>个人信息</a>
                        <a href="javascript:void(0);" class="item"><i class="pink lock icon"></i>修改密码</a>
                        <a href="#" th:href="@{/admin/logout}" class="item"><i class="red power icon"></i>注销</a>
                    </div>
                </div>
            </div>
            <a th:href="@{/}" target="_blank" class="m-item item m-mobile-hide"><i class="icon"></i>GO前台</a>
        </div>
    </div>
    <a href="" class="ui menu toggle black icon button m-right-top m-mobile-show"> <i class="sidebar icon"></i></a>
</nav>

<!--底部footer引用片段-->
<footer th:fragment="footer" class="ui inverted vertical segment m-padded-tb-big">
    <div class="ui center aligned container">
        <div class="ui inverted divided stackable grid">
            <div class="two wide column">
                <h4 class="ui inverted header m-text-thin green m-text-spaced"><i class="weixin icon"></i></h4>
                <div class="ui inverted link list">
                    <div class="item">
                        <img th:src="@{/images/wx.jpg}" src="../static/images/wx.jpg" alt="" class="ui rounded image" style="width: 90px">
                    </div>
                </div>
            </div>
            <div class="four wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博文</h4>
                <div id="newblog-container">
                    <div class="ui inverted link list" th:fragment="newblogList">
                        <a href="" class="item" target="_blank" th:href="@{/blog/{id}(id=${blog.id})}" th:each="blog : ${newblogs}" th:text="${blog.title}">开发工具</a>
                    </div>
                </div>
            </div>
            <div class="four wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">最新博文</h4>
                <div class="ui inverted link list">
                    <a href="" class="item">开发工具</a>
                    <a href="" class="item">开发工具</a>
                    <a href="" class="item">开发工具</a>
                </div>
            </div>
            <div class="four wide column">
                <h4 class="ui inverted header m-text-thin m-text-spaced">与吾联系</h4>
                <div class="ui inverted link list">
                    <a href="javascript:void (0);" class="item"><i class="email inon"></i><span th:text="#{index.email}"></span></a>
                    <a href="javascript:void (0);" class="item"><i class="qq icon"></i>QQ：1775825464</a>
                </div>
            </div>
            <div class="four wide column">
                <h4 class="ui inverted header">吾之自白</h4>
                <p class="m-text-thin m-text-spaced m-opacity-mini">如果你有能力去解决问题,而不行动,那一但有坏事发生就是你的责任!</p>
                <p class="m-text-thin m-text-spaced m-opacity-mini">With great power,with great responsibility!</p>
            </div>
        </div>
        <div class="ui inverted section divider"></div>
        <p class="m-text-thin m-text-spaced m-opacity-tiny" style="color: olive">Copyright © 2020 by 鄭氏</p>
    </div>
</footer>
<!--js资源引用片段-->
<th:block th:fragment="script">
    <script src="../static/js/jquery-3.6.0.min.js" th:src="@{/js/jquery-3.6.0.min.js}"></script>
    <script src="../static/js/semantic.min.js" th:src="@{/js/semantic.min.js}"></script>
<script th:src="@{/lib/editormd/editormd.js}"></script>
    <script src="../static/js/layer/layer.js" th:src="@{/layer/layer.js}"></script>
</th:block>
</body>
</html>